package com.example.pojo;

import java.io.Serializable;

/**
 * user
 * @author 
 */
public class User implements Serializable {
    private Integer userId;

    private String uname;

    private String upsw;

    private String uimage;

    private Integer ustate;

    private Integer uage;

    private static final long serialVersionUID = 1L;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getUpsw() {
        return upsw;
    }

    public void setUpsw(String upsw) {
        this.upsw = upsw;
    }

    public String getUimage() {
        return uimage;
    }

    public void setUimage(String uimage) {
        this.uimage = uimage;
    }

    public Integer getUstate() {
        return ustate;
    }

    public void setUstate(Integer ustate) {
        this.ustate = ustate;
    }

    public Integer getUage() {
        return uage;
    }

    public void setUage(Integer uage) {
        this.uage = uage;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        User other = (User) that;
        return (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getUname() == null ? other.getUname() == null : this.getUname().equals(other.getUname()))
            && (this.getUpsw() == null ? other.getUpsw() == null : this.getUpsw().equals(other.getUpsw()))
            && (this.getUimage() == null ? other.getUimage() == null : this.getUimage().equals(other.getUimage()))
            && (this.getUstate() == null ? other.getUstate() == null : this.getUstate().equals(other.getUstate()))
            && (this.getUage() == null ? other.getUage() == null : this.getUage().equals(other.getUage()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getUname() == null) ? 0 : getUname().hashCode());
        result = prime * result + ((getUpsw() == null) ? 0 : getUpsw().hashCode());
        result = prime * result + ((getUimage() == null) ? 0 : getUimage().hashCode());
        result = prime * result + ((getUstate() == null) ? 0 : getUstate().hashCode());
        result = prime * result + ((getUage() == null) ? 0 : getUage().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userId=").append(userId);
        sb.append(", uname=").append(uname);
        sb.append(", upsw=").append(upsw);
        sb.append(", uimage=").append(uimage);
        sb.append(", ustate=").append(ustate);
        sb.append(", uage=").append(uage);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}